package cn.gtlc;

/**
 * @Description 测试计算速度-
 * @Author zhouwx
 * @Date 2022/9/26
 * @Version 1.0.0
 */

public class DemoTest {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        long sum = 0;
        for (int i = 0; i < 100000; i++) {
            for (int j = 0; j < 100000; j++) {
                sum += j;
                //System.out.println("sum[" + i + "," + j + "]:" + sum);
            }
        }
        long end = System.currentTimeMillis();
        System.out.println("sum:" + sum);
        System.out.println("start:" + start);
        System.out.println("end:" + end);
        System.out.println("s:" + (end - start)/1000.0000);
        //
    }
}
